import { VagueOject } from "@/types/common";
import { ArticleType, ArticleInfoType } from "@/types/response/home";

let methods = async (data: VagueOject = {}, header: VagueOject = {}): Promise<any> => {}

export default {
    get_app_articleList: methods,
    post_app_pushComment: methods,
    get_app_linkList: methods,
    get_app_articleInfo_handle: async (data: VagueOject | ArticleInfoType = {}, header: VagueOject = {}): Promise<ArticleInfoType> => {
        data.loading = false
        data.page = 1
        data.total_page = 2
    
        data.article_comment.forEach((v: any) => {
            v.loading = false
            v.page = 1
            v.total_page = 3
        });
        return <ArticleInfoType>data
    }
}






